home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 67 / IOPROG_67A.ISO / soft / Tools / mwsppv4.exe / INSERT ADDCOLUMN.SCRIPT < prev    next >
Encoding:
Text File  |  2002-02-05  |  786 b   |  27 lines

  1. !!Script
  2. // Copyright ⌐ 1997-2002 - Modelworks Software
  3.  
  4. // Insert script helper for:
  5.  
  6. /**
  7. @Object: TreeTable 
  8. @Method: addColumn(name, format, width)~adds a column to the TreeTable. 
  9. The format value can be a -1 for left aligned (the default), a 0 for 
  10. center aligned or a 1 for right aligned. The width value is in pixels. 
  11. The default is set the width to equal values.
  12. @Syntax: treetable.addColumn(name, format, width)
  13. @Summary: addColumn(name, format, width)~adds a column to the TreeTable
  14. */
  15.  
  16. function DoCommand()
  17. {
  18.   var editor = getActiveEditor();
  19.   if (editor)
  20.   {
  21.     var selection = editor.getSelection();
  22.     editor.replace("treetable.addColumn(name, format, width);", selection);
  23.     editor.setActive("Insert treetable.addColumn");
  24.   }
  25. }
  26.  
  27. !!/Script